package org.ecype.util;

import android.util.Log;

public class Assert {

	private Assert() {
	}

	public static void aassert(boolean test) {
		if (test) {
			//skip
		} else {
			throw new AssertionError();
		}
	}

	public static <T> T aassert(Throwable e) {
		Log.println(Log.ASSERT, "assert", Log.getStackTraceString(e));
		if (e != null) {
			throw new AssertionError();
		}
		return null;
	}

}
